﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlTypes;

namespace WebNext.Domain.Entities
{
	public abstract class Entity
	{
		public virtual int Id
		{
			get;
			set;
		}

		public virtual string CreatedBy
		{
			get;
			protected set;
		}

		public virtual DateTime CreatedOn
		{
			get;
			protected set;
		}

		public virtual string LastUpdatedBy
		{
			get;
			protected set;
		}

		public virtual DateTime? LastUpdatedOn
		{
			get;
			protected set;
		}

		public virtual int Version
		{
			get;
			protected set;
		}

		public Entity()
		{
			this.CreatedOn = SqlDateTime.MinValue.Value;
		}
	}
}
